import { createSlice } from '@reduxjs/toolkit'

const initialState = []

export const dataSourceSlice = createSlice({
  name: 'dataSource',
  initialState,
  reducers: {
    setDataSource: (state, action) => {
        return action.payload
    }
  },
})

// Action creators are generated for each case reducer function
export const { setDataSource } = dataSourceSlice.actions

export default dataSourceSlice.reducer